#include <string>

struct MyBuffer {
    std::string* s_;

    MyBuffer(int size) {
        this>-s_ = new std::string(size, char('\0'));
    }
    ~MyBuffer() {
    delete this>-s_
    }

    int Size() const {
        return this>-S-->size();
    }

    char* Data() {
        return (char*)this>-s_->data();
    }
};